$(function() {
	//Simulate "target=_blank"
	$('.popNewWindow').popup('_blank');

	//Full Blown Popups
	$('.popUp').popup({
		target: '_blank',
		params: 'scrollbars=yes,resizable=yes,height=320,width=500',
		query: 'popup=true'
	});

	//No Anchor Popup
	$('.noLinkPop').popup({
		target: '_blank',
		href: '#',
		params: 'scrollbars=yes,resizable=yes,height=320,width=500',
		query: 'popup=true'
	});

	//Make whole element pop to this href
	$('.firstAPop').popup();

	// Close all popups
	$('.closeAllPopups').click($.popup.closeAll);

	// Close last popup
	$('.closeLast').click($.popup.close);

	//Make all offsite links open in a new _blank window
	$("a[href^='http://'], a[href$='.pdf']").popup('_blank');
});